﻿using CrazyMVSamLibrary.Base;
using CrazyMVSamLibrary.Model;

namespace CrazyMVSamLibrary.Function
{
    internal class BoxPromotion : Promotion
    {
        public PointPromotion mLeftUp { get; set; }
        public PointPromotion mRightBottom { get; set; }

        public BoxPromotion()
        {
            this.mLeftUp = new PointPromotion(OperatorType.ADD);
            this.mRightBottom = new PointPromotion(OperatorType.ADD);
            this.mType = PromotionType.Box;
        }

        public override float[] GetInput()
        {
            return new float[4] { this.mLeftUp.X,
                this.mLeftUp.Y,
                this.mRightBottom.X,
                this.mRightBottom.Y };
        }

        public override float[] GetLable()
        {
            return new float[2] { 2, 3 };
        }
    }
}